home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / C_ALGORI.ZIP / FIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-12  |  1.3 KB  |  74 lines

  1. #ifndef FIO_H 
  2. #define FIO_H 
  3.  
  4. //////////////////////////////////////////////////////////////////////// 
  5. // 
  6. //  Module Name:  fio.h 
  7. // 
  8. //  Description:  Fio include for class definitions 
  9. // 
  10. //  Written by:   John Tal 
  11. // 
  12. // 
  13. //  Modification history: 
  14. // 
  15. //  Date         Engineer     Mod #          Modification Description 
  16. // 
  17. //  12-Feb-1992  Tal          v 1.0-001      Initial conversion to C++ 
  18. // 
  19. //////////////////////////////////////////////////////////////////////// 
  20.  
  21.  
  22.  
  23. #include <stdio.h> 
  24. #include <stdlib.h>
  25. #include <string.h>
  26.  
  27. #include <sys/types.h>
  28. #include <sys/stat.h>
  29.  
  30. #include <memincs.h>
  31.  
  32.  
  33. // 
  34. //  Fio Class 
  35. // 
  36.  
  37.  
  38. class FIO_C 
  39.  
  40. private: 
  41.  
  42.    #define FIO_PERIOD   '.' 
  43.    #define FIO_SEED_PATH_LEN 64 
  44.    #define FIO_MAX_EXTENSION 999 
  45.    #define FIO_EXTENSION_LEN 3 
  46.  
  47.    SHORT  ExtensionLen; 
  48.    SHORT  MaxExtension; 
  49.  
  50. protected: 
  51.  
  52.    SHORT FindChar(PCHAR pcString, CHAR cChar);
  53.  
  54. public:
  55.  
  56.    #define FIO_OK  0
  57.    #define FIO_NO_FILE -1
  58.    #define FIO_FILE_OLD -2
  59.    #define FIO_NO_CHAR -3
  60.  
  61.    FIO_C(VOID) { };
  62.    ~FIO_C(VOID) { };
  63.    SHORT GetFile(PCHAR);
  64.    SHORT RemoveFile(PCHAR);
  65.    SHORT IncSeedPathName(PCHAR);
  66.    SHORT CheckFileClear(PCHAR);
  67.    SHORT ReplaceExt(PCHAR, PCHAR);
  68. };
  69.  
  70. typedef FIO_C * FIO_P;
  71.  
  72. #endif 
  73.